package com.yntsoft.entity;

import java.io.Serializable;
import java.util.List;

public class Permission  implements Serializable{
	
 /**
	 * 
	 */
	private static final long serialVersionUID = 1605829446504868688L;
	   private Integer id;

    private String permissionUrl;  
  
    private Integer type;//1：菜单  2：权限  
    
    public final static Integer TYPE_MENU=1;
    public final static Integer TYPE_PERMISSION=2;

    private Integer parentid;

    private String menuLogo; 

    private String permissionName;  

    private String permissionCode;

    private Integer isLock;
    public final static Integer IS_LOCK_1=1;//锁定
    public final static Integer IS_LOCK_2=2;//正常
    
    
    private String parentName;
    
    private List<Permission> childrenPermission;
    
    private String roleHasPermission;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPermissionUrl() {
        return permissionUrl;
    }

    public void setPermissionUrl(String permissionUrl) {
        this.permissionUrl = permissionUrl == null ? null : permissionUrl.trim();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getParentid() {
        return parentid;
    }

    public void setParentid(Integer parentid) {
        this.parentid = parentid;
    }

    public String getMenuLogo() {
        return menuLogo;
    }

    public void setMenuLogo(String menuLogo) {
        this.menuLogo = menuLogo == null ? null : menuLogo.trim();
    }

    public String getPermissionName() {
        return permissionName;
    }

    public void setPermissionName(String permissionName) {
        this.permissionName = permissionName == null ? null : permissionName.trim();
    }

    public String getPermissionCode() {
        return permissionCode;
    }

    public void setPermissionCode(String permissionCode) {
        this.permissionCode = permissionCode == null ? null : permissionCode.trim();
    }

    public Integer getIsLock() {
        return isLock;
    }

    public void setIsLock(Integer isLock) {
        this.isLock = isLock;
    }

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public List<Permission> getChildrenPermission() {
		return childrenPermission;
	}

	public void setChildrenPermission(List<Permission> childrenPermission) {
		this.childrenPermission = childrenPermission;
	}

	public String getRoleHasPermission() {
		return roleHasPermission;
	}

	public void setRoleHasPermission(String roleHasPermission) {
		this.roleHasPermission = roleHasPermission;
	}
}